package com.maxd.respository.helpTask;

import com.maxd.model.HelpTask;
import com.maxd.model.HelpTaskDetails;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface HelpTaskDetailsRepository extends Repository<HelpTaskDetails, Long> {

    @Query(value = "select * from help_task_details t where t.help_task_id=:helpTaskId order by sort",nativeQuery = true)
    List<HelpTaskDetails> selectByHelpTaskId(@Param("helpTaskId") Long helpTaskId);

}
